package sagroup.dracots;

import java.net.InetAddress;
import java.net.UnknownHostException;

import sagroup.dracots.TupleType;

import lime2.LimeServerID;
import lime2.PolicyException;

public abstract class ProposePartin extends NodePartinTesting {
	protected static final TupleType TUPLE_TYPE = new TupleType("propose");

	static int[] ports = new int[] { 1973, 1983 };

	static LimeServerID[] group;

	protected static int initiator_port = 1963;
	static LimeServerID masterId;

	protected static int initiator_http_port = 8963;
	static {
		try {
			masterId = new LimeServerID(InetAddress.getLocalHost(),
					initiator_port);
			group = new LimeServerID[ports.length];
			for (int i = 0; i < ports.length; i++) {
				group[i] = new LimeServerID(InetAddress.getLocalHost(),
						ports[i]);
			}
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}

	public ProposePartin(int port, int httpPort) throws UnknownHostException,
			PolicyException {
		super(port, httpPort);
		ts = DracoTS.get("propese");
	}

}
